package com.foreveross.vo;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 楼盘资讯搜索关键字表
 * HrCode entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "news_search", catalog = "hrtenement")
public class NewsSearch implements java.io.Serializable {

	private String id;
	private String weixinId;
	private int type;
	private String searchKey;
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createDate;
	private long searchNum;
	 
 
	/** default constructor */
	public NewsSearch() {
	}

	/** full constructor */
	public NewsSearch(String id, String weixinId, int type,
			String searchKey,Date createDate,long searchNum) {
		this.id = id;
		this.type = type;
		this.weixinId = weixinId;
		this.searchKey = searchKey;
		this.createDate = createDate;
		this.searchNum=searchNum;
	}

	@Id
	@GenericGenerator(name="idGenerator", strategy="uuid")
	@GeneratedValue(generator="idGenerator") 
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	@Column(name = "weixinId")
	public String getWeixinId() {
		return weixinId;
	}

	public void setWeixinId(String weixinId) {
		this.weixinId = weixinId;
	}
	@Column(name = "type")
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	@Column(name = "search_key")
	public String getSearchKey() {
		return searchKey;
	}

	public void setSearchKey(String searchKey) {
		this.searchKey = searchKey;
	}

	@Column(name = "create_date")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public long getSearchNum() {
		return searchNum;
	}

	public void setSearchNum(long searchNum) {
		this.searchNum = searchNum;
	}

}